<template>
    <Carousel autoplay v-model="model" style="z-index: -1" loop>
        <CarouselItem v-for="(item, index) in carouselList" :key="index">
            <img :src="item">
        </CarouselItem>
    </Carousel>
</template>

<script>

import vuex from "@home/js/vuex";

export default {
	data() {
		return {
			// 初始图片
			model: 0,
			// 轮播图列表
			carouselList: vuex.state.carouselList
		}
	}
}
</script>

<style>

</style>